import java.util.Properties;

public class Test {
    public void split() {
        String url = "http://www.lovo.com/index?name=aaaaaa&age=20&gender=男";
        String[] strs = url.split("\\?");
        String[] strs1 = strs[1].split("&");
        Properties properties = new Properties();
        for (int i = 0; i < strs1.length; i++) {
            String[] strs2 = strs1[i].split("=");
            properties.setProperty(strs2[0], strs2[1]);
        }
        Util.out(properties, "3.properties");
        Properties a = Util.input(properties, "3.properties");
        System.out.println(a.getProperty("name"));
        System.out.println(a.getProperty("gender"));
        System.out.println(a.getProperty("age"));
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.split();
    }


}
